<?php

namespace Admin\Controller;

/**
* 短信控制器
*/
class SmsController extends AdminController
{
	//展示短信列表
	public function showList(){
		$data = $this ->lists('Sms');
		$this ->assign('data',$data);
		$this ->display();
	}
	//删除短信
	public function ajaxDel(){
		$ids  = I('post.ids');
		if(D('Sms') ->ajaxDel($ids)){
			$this ->ajaxReturn('删除成功！');
		}else{
			$this ->ajaxReturn('删除失败');
		}
	}
}